   <!--
      This file is licensed under the MIT License (MIT) available on
      http://opensource.org/licenses/MIT.
   -->
<lottie-player id="animation-flower-heads" src="/json/flower_heads.json"></lottie-player>
  <script>
    const animFlowerHeads = document.querySelector('#animation-flower-heads');
    animFlowerHeads.addEventListener('click', playFlowerHeadsAnimation);
    animFlowerHeads.addEventListener('complete', stopFlowerHeadsAnimation);

    document.querySelector('#flower-heads-hoverable').addEventListener('mouseenter', playFlowerHeadsAnimation);

    function stopFlowerHeadsAnimation() {
      animFlowerHeads.stop();
    }

    function playFlowerHeadsAnimation() {
      animFlowerHeads.play(animFlowerHeads.firstFrame);
    }
  </script>
